/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.avu.tp.assign2.question3.srp.conforms;

import com.avu.tp.assign2.question3.srp.conforms.AccHolder;

/**
 *
 * @author Malotana
 */
public class Deposit implements Transaction{
    private AccHolder accHolder = new AccHolder();

    @Override
    public void execute() {
        System.out.printf("*****Current balance available is R%.2f\n", accHolder.getBalance());
        double bal = accHolder.getBalance() + 120;
        accHolder.setBalance(bal);
    }
    
}
